package cn.xumaoyang.pet.service;

import cn.xumaoyang.basic.service.IBaseService;
import cn.xumaoyang.basic.util.AjaxResult;
import cn.xumaoyang.basic.util.PageList;
import cn.xumaoyang.pet.domain.Pet;
import cn.xumaoyang.pet.domain.SearchMasterMsg;
import cn.xumaoyang.pet.query.SearchMasterMsgQuery;
import cn.xumaoyang.user.domain.Logininfo;

import java.util.List;

public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {

    List<SearchMasterMsg> getAll();

    //未处理宠物信息的分页查询。
    PageList<SearchMasterMsg> pending(SearchMasterMsgQuery query, Logininfo currentLoginInfo);
    //已处理宠物信息的分页查询。
    PageList<SearchMasterMsg> processed(SearchMasterMsgQuery query, Logininfo currentLoginInfo);
    //发布宠物信息。
    void publish(SearchMasterMsg searchMasterMsg, Long id);
    //查询个人
    PageList<SearchMasterMsg> queryUserMsg(SearchMasterMsgQuery query, Logininfo currentLoginInfo);
    //处理寻主。
    void handle(Pet pet, Logininfo currentLoginInfo);
}
